<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/tlds/struts-html.tld"  prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/struts-bean.tld"  prefix="bean" %>
<%@ taglib uri="/WEB-INF/tlds/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tlds/custom-html.tld" prefix="chtml" %>

<%@ page  import="java.util.ArrayList" %>
<%@ page  import="java.sql.Timestamp" %>
<%@ page  import="com.erp.framework.util.CommonUtil" %>
<%@ page import = "com.erp.app.common.ProjectConstants"%>
<%@ page import= "com.erp.app.util.web.WebUtil"%>

<%
	String pic_path = (String)session.getAttribute(ProjectConstants.SESSION_FLASH_MOVIE_PIC_PATH);
	String libPath = CommonUtil.nullToString(
		WebUtil.getPrjParamVal(session, ProjectConstants.PP_ZOOM_SITE_ADDRESS));
	
	
%> 
<jsp:useBean id="flashForm" scope="session" type="com.erp.app.flash.FlashForm" />
<html>
<head>
<title>Zoom In/Zoom Out</title>
<%	

	if(session.getAttribute(ProjectConstants.SESSION_FLASH_MOVIE_MAKSED) != null
		&& session.getAttribute(ProjectConstants.SESSION_FLASH_MOVIE_MAKSED).equals(ProjectConstants.GENERIC_YES)) {
			libPath = libPath + "/tszoom/dynapi/src/lib";%>
	<script language="JavaScript" src="tszoom/dynapi/src/dynapi.js"></script>
<%} else {libPath = libPath + "/tszoom_1/dynapi/src/lib";%>
	<script language="JavaScript" src="tszoom_1/dynapi/src/dynapi.js"></script>
<%}


%>
<script language="JavaScript" >
<%
out.print("DynAPI.setLibraryPath('"+libPath+"');");
out.print("DynAPI.include('dynapi.api.*'); "); 
out.print("DynAPI.include('dynapi.event.*'); "); 
out.print("DynAPI.include('dynapi.gui.dynimage.js');");
out.print("DynAPI.include('tsapi.gui.tsimage.js'); ");
out.print("DynAPI.include('tsapi.gui.ts_scrollbar.js');");
out.print("DynAPI.include('tsapi.gui.spin_scrollbar.js');");
out.print("DynAPI.include('tsapi.gui.color_swatch.js');");
out.print("DynAPI.include('tsapi.gui.ts_navbox.js');");
out.print("DynAPI.include('tsapi.gui.zoom_image.js');");
out.print("DynAPI.include('tsapi.gui.ts_zoom.js');");
%>
  </script>
</head>
<body bgcolor=#ffffff>
<script language='JavaScript'>
<!--

<%
	out.print("var tszoom = new ts_zoom(\"http://"+ request.getServerName() + ":" + request.getServerPort()+request.getContextPath()+ pic_path+"\",500,500);");
	out.print("tszoom.setBorder(4);");
	out.print("tszoom.setMaxZoom(3,1.5);");
	out.print("tszoom.enableUI(null,-4,0);");
	out.print("tszoom.enableNav(3);");
	out.print("tszoom.addToPage();");
%>
-->
</script>
</body>
</html>